package org.ghost.wechat.platform.dto.wechat.material;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @author 01
 */
public class WeChatBatchGetNewsDTO implements Serializable {
    private static final long serialVersionUID = -3553314620251800235L;

    private String mediaId;

    private WeChatBatchGetNewsDTO.WeChatBatchGetNewsItemDTO content;

    public String getMediaId() {
        return mediaId;
    }

    @JsonProperty(value = "media_id")
    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public WeChatBatchGetNewsItemDTO getContent() {
        return content;
    }

    public void setContent(WeChatBatchGetNewsItemDTO content) {
        this.content = content;
    }

    public class WeChatBatchGetNewsItemDTO implements Serializable {
        private static final long serialVersionUID = -8707458516388261849L;

        private List<WeChatGetNewsDTO> newsItem;

        public List<WeChatGetNewsDTO> getNewsItem() {
            return newsItem;
        }

        @JsonProperty(value = "news_item")
        public void setNewsItem(List<WeChatGetNewsDTO> newsItem) {
            this.newsItem = newsItem;
        }

        @Override
        public String toString() {
            return "WeChatBatchGetNewsItemDTO{" +
                    "newsItem=" + newsItem +
                    '}';
        }
    }
}
